<template>
  <div class="boss">
    <Top></Top>
    <Banner id="8"></Banner>
    <chamber></chamber>
    <div class="boa">
      <!-- 版心区域 -->
      <div class="area-center">
        <!-- 人才库区域 -->
        <div class="top">
          <!-- 人才库文字区域 -->
          <head-page title="生命篇"></head-page>
          <!-- 用户单位文字区域 -->
          <div class="umit">
            <div class="samll">
              <div class="left">
                <div class="yuan"></div>
              </div>
              <div class="text title-center">生命产品系列简介</div>
            </div>
            <div
              class="xiao flex aic bold-size m-t-07"
              v-for="(item, index) in list"
              :key="index"
              @click="litetwo(item.lifeTitle)"
            >
              <div class="left">
                <div>{{ index + 1 }}.</div>
              </div>
              <div class="zhong">
                {{ item.lifeTitle }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>
  
  <script>
import Top from "@/components/Home/TopPage.vue";
import Banner from "@/components/Home/BannerView.vue";
import chamber from "@/components/Home/CommCe.vue";
import { getLifeTitle } from "@/api/index";

export default {
  data() {
    return {
      list: [],
    };
  },
  components: {
    Top,
    Banner,
    chamber,
  },
  mounted() {
    // 获取标题列表
    getLifeTitle().then((res) => {
      if (res.data.code == 200) {
        this.list = res.data.rows;
      }
    });
  },
  methods: {
    litetwo(i) {
      // this.$router.push({ path: "/liftthree", query: { i } })
      this.$router.push({ path: "/largeapplet", query: { i } });
    },
  },
};
</script>
  
  <style scoped>
/* 大盒子区域 */
.boss {
  width: 100%;
}
/* 整体区域 */
.boa {
  width: 100%;

  display: flex;
  justify-content: center;
  margin-top: 0.05rem;
}
/* 版心区域 */
.center {
  width: 98%;
}
/* 访谈和电视总区域 */
.top {
  width: 100%;
}
.wen {
  width: 100%;
  height: 25%;
  display: flex;
  justify-content: center;
}
.xian {
  width: 98%;
  height: 100%;
  display: flex;
  border-bottom: 2px solid #dad9df;
}
.le {
  width: 40%;
  height: 100%;
  line-height: 0.3rem;
  font-size: 0.18rem;
  padding-left: 0.1rem;
}
.le img {
  height: 0.3rem;
  float: right;
  padding: 0.05rem 0.1rem 0 0;
}
h3 {
  width: 60%;
  height: 100%;
  font-size: 0.24rem;
  line-height: 0.4rem;
}
.samll {
  width: 100%;
  margin: 0.05rem 0;
  display: flex;
}
/* 左边区域 */
.samll .left {
  width: 5%;
  height: 0.3rem;
  margin-right: 0.07rem;
}
.yuan {
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background-color: black;
  margin-top: 0.06rem;
}
/* 中间区域 */
.text {
  line-height: 0.32rem;
}
/* 用人单位区域 */
.umit {
  width: 100%;
  min-height: 0.4rem;
  border-radius: 0.1rem;
  margin-top: 0.1rem;
}
.xiao {
  width: 100%;
  display: flex;
}
/* 左边区域 */
.xiao .left {
  width: 5%;
  height: 100%;
  margin-left: 0.1rem;
}
.xiao .left img {
  width: 0.17rem;
  height: 0.3rem;
}
/* 中间区域 */
.zhong {
  width: 95%;
  height: 100%;
  line-height: 0.3rem;
  padding-left: 0.05rem;
}
/* 底部区域 */
.bottom {
  width: 100%;
  height: 100%;
  margin-top: 0.1rem;
}

.bottom h3 {
  width: 100%;
  height: 0.35rem;
  text-align: center;
}
/* 内容区域 */
.context {
  width: 100%;
  height: 1rem;
}
</style>